package com.bone.vo;

import com.bone.constant.Constant;
import com.bone.util.AmountUtils;


public class UserVO implements java.io.Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -536959523165688838L;
	
	
	private Long userId;
	private String userNo;
	private String userName;
	private String userSataus;
	private String userPhone;
	private String userEmail;
	private String cardNo;
	
	private String accountStatus;
	private Long refundBalance;
	private Long rechargeBalance;
	private Long frozenBalance;
	private Long compensateBalance;
	
	


	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserNo() {
		return userNo;
	}

	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserSataus() {
		return userSataus;
	}

	public void setUserSataus(String userSataus) {
		this.userSataus = userSataus;
	}

	public String getAccountStatus() {
		return accountStatus;
	}

	public void setAccountStatus(String accountStatus) {
		this.accountStatus = accountStatus;
	}
	
	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
	
	public Long getRefundBalance() {
		return refundBalance;
	}

	public void setRefundBalance(Long refundBalance) {
		this.refundBalance = refundBalance;
	}

	public Long getRechargeBalance() {
		return rechargeBalance;
	}

	public void setRechargeBalance(Long rechargeBalance) {
		this.rechargeBalance = rechargeBalance;
	}

	public Long getFrozenBalance() {
		return frozenBalance;
	}

	public void setFrozenBalance(Long frozenBalance) {
		this.frozenBalance = frozenBalance;
	}

	public Long getCompensateBalance() {
		return compensateBalance;
	}

	public void setCompensateBalance(Long compensateBalance) {
		this.compensateBalance = compensateBalance;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	/**
	 * 
	 * @return
	 */
	public String getUserSatausZh() {
		return Constant.USER_STATUS.getCnName(userSataus);
	}
	
	public boolean isUserStatusNormal(){
		return "NORMAL".equals(userSataus);
	}
 
	/**
	 * 
	 * @return
	 */
	public String getAccountStatusZh() {
		return Constant.USER_STATUS.getCnName(this.getAccountStatus());
	}
	
	public boolean isUserAccountStatusNormal(){
		return "NORMAL".equals(accountStatus);
	}
	
	/**
	 * 获取金额以元为单位.
	 * @return
	 */
	public float getAmountYuan() {
		return AmountUtils.convertToYuan(refundBalance+rechargeBalance+compensateBalance-frozenBalance);
	}
	/**
	 * 获取金额以元为单位.
	 * @return
	 */
	public float getRefundBalanceYuan() {
		return AmountUtils.convertToYuan(refundBalance);
	}
	/**
	 * 获取金额以元为单位.
	 * @return
	 */
	public float getRechargeBalanceYuan() {
		return AmountUtils.convertToYuan(rechargeBalance);
	}
	/**
	 * 获取金额以元为单位.
	 * @return
	 */
	public float getFreezeBalanceYuan() {
		return AmountUtils.convertToYuan(frozenBalance);
	}
	/**
	 * 获取金额以元为单位.
	 * @return
	 */
	public float getCompensateBalanceYuan() {
		return AmountUtils.convertToYuan(compensateBalance);
	}

}
